package javaWebMonitor;

import java.util.ArrayList;
import java.util.List;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

import util.net.NetUtils;

public class URLTest {
	
	
	public static void main(String[] args) throws Exception{
		String content = NetUtils.httpGet("https://nj.lianjia.com/ershoufang/103101651193.html");
		System.out.println(content);
		
		
		
		JSONObject json = JSONObject.parseObject(content);  
//		System.out.println(JSONObject.toJSONString(json, true));  
//		JSONArray array = json.getJSONArray("result");  
//		List<Keyword> keywords = new ArrayList<>();  
//		for (int i = 0; i < array.size(); i++) {  
//		    JSONObject jo = array.getJSONObject(i);  
//		    assertEquals(topic.getId(), jo.getInteger("topicId"));  
//		    keywords.add(new Keyword(topic, jo.getInteger("id"), jo.getString("keyword"), null,  
//		            jo.getJSONArray("spiderTopics"), jo.getString("updatedAt"), jo.getString("createdAt")));  
//		}  
	}

}
